package org.example.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.example.service.HelloService;

import java.util.Random;

/**
 * @author xw
 */
@Service
public class HelloServiceImpl implements HelloService {

    public String sayHello1() {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello 111111";
    }

    public String sayHello2() {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello 222222";
    }

    public String sayHello3() {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello 333333";
    }
}
